package com.service.supplier;

import com.dao.supplier.SupplierMapper;
import com.pojo.SysSupplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {

    @Autowired
   private SupplierMapper supplierMapper;
    @Override
    public List<SysSupplier> list(String supName,int pageIndex) {
        List<SysSupplier> list = supplierMapper.list(supName,pageIndex);
        return list;
    }

    @Override
    public int count(String supName) {
        int pageCount = supplierMapper.count(supName);
        return pageCount;
    }
}
